#!/usr/bin/env python
# -*- coding: utf-8 -*-

'''eof
name:一度关联方专利指数
code:U_R1EntPatentIndex
tableName:
columnName:
groups:关联方
dependencies:EG_BBD
type:常用指标
dataSourceType:在线指标
description:
eof'''

'''
直接从返回的EG接口取出
R1EntPatentIndex :
'''


def u_R1EntPatentIndex():
    null_type_list = ['', None, 'null', 'Null', 'NULL', '/', ' ']

    try:
        R1EntPatentIndex = EG_BBD['U_R1EntPatentIndex']

        if R1EntPatentIndex not in null_type_list:
            return float(R1EntPatentIndex)
        else:
            return u'缺失值'

    except:
        return u'缺失值'


result = u_R1EntPatentIndex()